#include <iostream>
#include <fstream>
#include <string>
using namespace std;
/*
void SplitFilename (const string& str)
{

  cout << "Splitting: " << str << endl;
  cout << " folder: " << str.substr(0,a) << endl;
  cout << " file: " <<  << endl;
  b=str.find_last_of(".");
  cout << " name: " << str.substr(a+1,b-a-1) << endl;
  cout << " ext: " << str.substr(b+1) << endl;
}*/

int main(int argc, char * argv[])
{
	if(argc < 2) return 1;
    ofstream f("out.txt");

    for(int i=1; i<argc; i++)
    {
        string str (argv[i]);
        size_t a,b;
        a = str.find_last_of("\\");
        b = str.find_last_of(".");

        if(i<10)
            f << "music.file.0" << i << "=music\\" << str.substr(a+1) << "\nmusic.desc.0" << i << "=" << str.substr(a+1,b-a-1) << "\n" << endl;
        else
            f << "music.file." << i << "=music\\" << str.substr(a+1) << "\nmusic.desc." << i << "=" << str.substr(a+1,b-a-1) << "\n" << endl;

    }

	return 0;
}
